package edu.inf3.j2ee.entities;

public class Staff {
	private long id;
	private String name;
	private String lastname;
	private Credentials cred;
	
	public Staff(){
	}
	
	public Staff(Credentials cred, String lastname, String name) {
		super();
		this.cred = cred;
		this.lastname = lastname;
		this.name = name;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the lastname
	 */
	public String getLastname() {
		return lastname;
	}

	/**
	 * @param lastname the lastname to set
	 */
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	/**
	 * @return the cred
	 */
	public Credentials getCred() {
		return cred;
	}

	/**
	 * @param cred the cred to set
	 */
	public void setCred(Credentials cred) {
		this.cred = cred;
	}
	
	public boolean isTeacher(){
		return true;
	}
	
	public boolean isCoordinator(){
		return true;
	}
	
}
